package haha.life.normal;

import jzqb.po.AdminPermissionPo;

import java.util.List;

public class GenerateLayoutListUtils {


    public static String   MMM(List<AdminPermissionPo> permissions) {

//        ArrayList<AdminLayoutListParentPo> list = new ArrayList<AdminLayoutListParentPo>();
//        for (int i = 0; i < permissions.size(); i++) {
//            AdminPermissionPo permission = permissions.get(i);
//            AdminLayoutListParentPo parentPo = new AdminLayoutListParentPo();
//            parentPo.setID(permission.getID());
//            parentPo.setName(permission.getName());
//            parentPo.setPidlayout(permission.getPID_LAYOUT());
//            parentPo.setTitle(permission.getTITLE());
//            parentPo.setIcon(permission.getICON());
//            parentPo.setJump(permission.getJUMP());
//
//            if ("1".equals(permission.getSHOW_LAYOUT()) && "0".equals(permission.getPID_LAYOUT())){
//                list.add(parentPo);
//                ArrayList<AdminLayoutListChildrenPo> list_Children = new ArrayList<AdminLayoutListChildrenPo>();
//                for (AdminPermissionPo AdminPermissionPo: permissions) {
//                  String PID=AdminPermissionPo.getPID_LAYOUT();
//                    if(permission.getID().equals(PID)){
//                        AdminLayoutListChildrenPo AdminLayoutListChildrenPo=new AdminLayoutListChildrenPo();
//                        AdminLayoutListChildrenPo.setTitle(AdminPermissionPo.getTITLE());
//                        AdminLayoutListChildrenPo.setIcon(AdminPermissionPo.getICON());
//                        AdminLayoutListChildrenPo.setJump(AdminPermissionPo.getJUMP());
//                        list_Children.add(AdminLayoutListChildrenPo);
//                        parentPo.setList(list_Children);
//                    }
//                }
//            }
//        }
//        String listToJson = CommonConvertUtils.getListToJson(list);
//        return listToJson;
        return "";

    }


}
